package com.njmaomao.gj.pyot.common.bean.dto;

import com.njmaomao.gj.pyot.common.bean.BaseRequest;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import javax.validation.constraints.NotBlank;

@ApiModel(value = "刷卡支付参数")
public class MicropayReqDTO extends BaseRequest {

    @ApiModelProperty(notes = "微信支付分配的公众账号ID（企业号corpid即为此appId）必传")
    @NotBlank
    private String appId;

    @ApiModelProperty(notes = "订单编码 必传")
    @NotBlank
    private String orderCode;

    @ApiModelProperty(notes = "扫码支付授权码，设备读取用户微信中的条码或者二维码信息 必传")
    @NotBlank
    private String authCode;

    @ApiModelProperty(value = "是否接仿真环境，默认false")
    private boolean isSandbox = false;

    public boolean getIsSandbox() {
        return isSandbox;
    }

    public void setIsSandbox(boolean isSandbox) {
        this.isSandbox = isSandbox;
    }

    public String getOrderCode() {
        return orderCode;
    }

    public void setOrderCode(String orderCode) {
        this.orderCode = orderCode;
    }

    public String getAppId() {
        return appId;
    }

    public void setAppId(String appId) {
        this.appId = appId;
    }

    public String getAuthCode() {
        return authCode;
    }

    public void setAuthCode(String authCode) {
        this.authCode = authCode;
    }
}
